package com.googlecode.garbagecan.configuration.bean;

import java.io.File;

import org.apache.commons.configuration.XMLConfiguration;
import org.apache.commons.configuration.beanutils.BeanDeclaration;
import org.apache.commons.configuration.beanutils.BeanHelper;
import org.apache.commons.configuration.beanutils.XMLBeanDeclaration;


public class TestWindowManager {
	public static void main(String[]args) throws Exception {
		File file = new File(TestWindowManager.class.getResource("windows.xml").getFile());
		XMLConfiguration xmlConf = new XMLConfiguration(file);
		BeanDeclaration decl = new XMLBeanDeclaration(xmlConf, "gui.windowManager");
		WindowManager wm = (WindowManager) BeanHelper.createBean(decl);
		System.out.println(wm.getStyleDefinition().getIconName());
	}
}
